<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 800px;
            height: 500px;
            border: 1px solid;
        }
    </style>
</head>
<body>
    <div class="box">

    </div>
</body>
</html>
<script src="./echarts.min.js"></script>
<script>
    let box=document.querySelector(".box")
    let charbox=echarts.init(box)
    console.log(charbox);

    let option={
        xAxis:{
            data:['100','200','300','400']
        },
        yAxis:{},
        series:[
            {
                type:'bar',
                data:['10000','20000','5000','30000']
            }
        ]
    }

    charbox.setOption(option)
</script>